package com.example.freemarkdemo.ftpDemo;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: chenhao
 * \* Date: 2021/9/1
 * \* Time: 14:29
 * \* Description:
 * \
 */
import java.io.FileNotFoundException;

/**
 * 删除
 */
public class FtpDelMain {
    public static void main(String[] args) throws FileNotFoundException {
        //ftp服务器IP地址
        String ftpHost = "192.168.0.60";
        //ftp服务器端口
        int ftpPort = 21;
        //ftp服务器用户名
        String ftpUserName = "test";
        //ftp服务器密码
        String ftpPassword = "123456";
        //ftp服务器路径
        String ftpPath = "/home/test";
        //文件名
        String fileName = "htdocs.zip";

        //删除
        //删除ftp根目录下的文件
      FtpUtil.deleteFile(ftpHost, ftpPort, ftpUserName, ftpPassword, ftpPath, fileName);


    }
}